import React, {Component} from 'react';
import {Route, Switch} from 'react-router-dom';
import Index from '../index/index';
import Concat from '../contact/contact';
import Technical from '../technical_service/technical';
import Member from '../member/member';
import Join from '../join_association/join';
import Meeting from '../meeting/meeting';
import Association from '../association/association';
import AboutAssociation from '../about_association/about_association';
import EducationalIndex from '../education/educational_index';
import ScoreInquiry from '../education/score_inquiry';
import SearchResult from '../search/search_result';
import Goverment from '../government/government';
import NotFound404 from '../NotFound404/404';

export default class ROU extends Component {
    render() {
        return (
            <Switch>
                <Route exact path="/" component={Index}/>
                <Route path="/concat" component={Concat}/>
                <Route path="/technical" component={Technical}/>
                <Route path="/member" component={Member}/>
                <Route path="/join_unit" component={Join}/>
                <Route path="/meeting" component={Meeting}/>
                <Route path="/association" component={Association}/>
                <Route path="/about_association" component={AboutAssociation}/>
                <Route path="/educational" component={EducationalIndex}/>
                <Route path="/score_inquiry" component={ScoreInquiry}/>
                <Route path="/search_result" component={SearchResult}/>
                <Route path="/goverment" component={Goverment}/>
                <Route component={NotFound404}/>
            </Switch>
        );
    }
}

